Adam Smith, Economist